package com.yidu.best.stock.stockTrade.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.yidu.best.stock.stockTrade.domain.StockTrade;
import com.yidu.best.stock.stockTrade.domain.StockTradeVo;

public interface StockTradeDao {
	/**
	 * 分页查询显示所有数据
	 * @param stockPlateVo
	 * @return
	 */
	public List<StockTrade> queryStockPlateByCriteriaWithPage(StockTradeVo StockTradeVo);
		/**
		 * 数据总数
		 * @param stockPlateVo
		 * @return
		 */
	public int selectCount(StockTradeVo StockTradeVo);
	
	/**
	 * 清算股票交易数据
	 * @param paramMap
	 * @return
	 */
	public int closeStock(@Param("tradeStatus")Integer tradeStatus,@Param("stockTradeId")String stockTradeId);
	
	public StockTrade findStockClearingById(String stockTradeId);
	
	/**
	 * 添加交易数据
	 * @param list
	 * @return
	 */
	public int addStockTrade(List<StockTrade> list);
	
	
}
